import 'package:get/get.dart';
import 'package:grab_the_order/app/modules/framework/framework_binding.dart';
import 'package:grab_the_order/app/modules/framework/framework_view.dart';
import 'package:grab_the_order/app/modules/log/log_binding.dart';
import 'package:grab_the_order/app/modules/log/log_view.dart';
import 'package:grab_the_order/app/modules/rule/rule_binding.dart';
import 'package:grab_the_order/app/modules/rule/rule_view.dart';
import 'package:grab_the_order/app/modules/splash/splash_binding.dart';
import 'package:grab_the_order/app/modules/splash/splash_view.dart';
import 'package:grab_the_order/app/modules/permission_check/permission_check_binding.dart';
import 'package:grab_the_order/app/modules/permission_check/permission_check_view.dart';
import 'package:grab_the_order/app/modules/profile/profile_binding.dart';
import 'package:grab_the_order/app/modules/profile/profile_view.dart';
import '../modules/home/home_binding.dart';
import '../modules/home/home_view.dart';
part 'app_routes.dart';

class AppPages {
  AppPages._();

  static const INITIAL = Routes.SPLASH;

  static final routes = [
    GetPage(
      name: _Paths.HOME,
      page: () => const HomeView(),
      binding: HomeBinding(),
    ),
    GetPage(
      name: _Paths.SPLASH,
      page: () => const SplashView(),
      binding: SplashBinding(),
    ),
    GetPage(
      name: _Paths.FRAMEWORK,
      page: () => const FrameworkView(),
      binding: FrameworkBinding(),
    ),
    GetPage(
      name: _Paths.PROFILE,
      page: () => const ProfileView(),
      binding: ProfileBinding(),
    ),
    GetPage(
      name: _Paths.RULE,
      page: () => const RuleView(),
      binding: RuleBinding(),
    ),
    GetPage(
      name: _Paths.PERMISSION_CHECK,
      page: () => const PermissionCheckView(),
      binding: PermissionCheckBinding(),
      transition: Transition.rightToLeft,
    ),
    GetPage(
      name: _Paths.LOG,
      page: () => const LogView(),
      binding: LogControllerBinding(),
    ),
  ];
}
